package cn.yougou.service.admin;

import cn.yougou.pojo.YgCommodityProduct;
import cn.yougou.pojo.YgCommoditySpecification;

import java.util.List;

/**
 * 商品规格
 */
public interface YgAdminCsService {


    /**
     * 插入数据
     * @param ygCommoditySpecification
     * @return
     */
    int insert(YgCommoditySpecification ygCommoditySpecification);

    /**
     * 逻辑删除
     * @param ygCommoditySpecification
     * @return
     */
    int delete(YgCommoditySpecification ygCommoditySpecification);

    /**
     * 根据实体类查询
     * @param ygCommoditySpecification
     * @return
     */
    List<YgCommoditySpecification> queryList(YgCommoditySpecification ygCommoditySpecification);


    /**
     * 根据实体类更新
     * @param ygCommoditySpecification
     * @return
     */
    int update(YgCommoditySpecification ygCommoditySpecification);

}
